home *** CD-ROM | disk | FTP | other *** search
- Path: news-2.csn.net!dmoorman
- From: dmoorman@csn.net (David Moorman)
- Newsgroups: comp.sys.cbm
- Subject: Re: Strange BASIC behavior (was: Re: Scanning...)
- Date: 6 Apr 1996 06:56:40 GMT
- Organization: SuperNet Inc. +1.303.296.8202 Denver Colorado
- Message-ID: <4k54j8$phc@news-2.csn.net>
- References: <4jc9kt$h3p@news.rrz.uni-koeln.de> <9603272258.AA0014u@cosine.demon.co.uk> <Dp0uoD.Mq9@eskimo.com> <4jrclt$lmi@news.lth.se>
- NNTP-Posting-Host: 199.117.27.22
- X-Newsreader: TIN [version 1.2 PL2]
-
- Anders Lindgren (dat94ali@ludat.lth.se) wrote:
-
- : This discussion reminds me of a peculiar behavior of C64 Basic V2,
- : which I never quite figured out; If a program consisted of several
- : independent parts, you could LOAD a selected part from within the
- : code, and the new program would replace the old one, immediately
- : starting to execute as soon as it was loaded. The funny thing was
- : that if any program that LOADed another program used an INPUT command
- : before the LOAD, the new program would freak out in the most pecualiar
- : ways. This never happened when I replaced the INPUTs with a GET-loop
- : that read strings letter by letter. Has anyone got an answer to this
- : very old, unanswered question of mine?? It'd be fun to know after all
- : these years (and now I'm getting a C64 again... :) ).
-
- : /ali----------------------------------------------------------------------------
- : (Anders Lindgren, | A4000/040/ | "Of course it's unreadable! |
- : dat94ali@ludat.lth.se, | 6Mb/460Mb/ | Why do you think it's |
- : http://www.ludat.lth.se/~dat94ali) | 1942/OS3.0 | called code???" O- |
- : --------------------------------------------------------------------------------
-
- Since then, most folks have just learned not to LOAD from within
- BASIC. A dynamic keyboard technique does perfect Basic LOADs.
- And for ML, use
-
- sys57812"file",8,0:poke780,0:poke781,addlo:poke782,addhi
- sys65493
-
- where addlo/addhi are the lo/hi bytes of the load address.
-
- Basic 2.0 was never supposed to be used with a sophisticated color
- machine like the C-64. Thank Someone that SYS, POKE, and PEEK
- are supported -- and that 65xx ML is so EASY to USE!
-
- Dave
-